﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="view_list_guest_type.aspx.cs" Inherits="view_list_guest_type" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br /><br />
<div align="center">
<br /><br /><br /><img src="Image/list-guest-type.png" alt=""/>
    <br /><br />

    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" 
        DataKeyNames="GUEST_TYPE_ID" DataSourceID="orclDataSource2" Width="500px"
        ForeColor="#FFCC66" BorderColor="#4A1106" PageSize="20"
        >
        <Columns>
            <asp:BoundField DataField="GUEST_TYPE_ID" HeaderText="GUEST_TYPE_ID" 
                ReadOnly="True" SortExpression="GUEST_TYPE_ID" />
            <asp:BoundField DataField="GUEST_TYPE_NAME" HeaderText="GUEST_TYPE_NAME" 
                SortExpression="GUEST_TYPE_NAME" />
            <asp:BoundField DataField="DISCOUNT" HeaderText="DISCOUNT" 
                SortExpression="DISCOUNT" />
        </Columns>
        <HeaderStyle BackColor="#993300" />
        <PagerStyle HorizontalAlign="Center" />
        <RowStyle HorizontalAlign="Center" />
    </asp:GridView>

    <asp:SqlDataSource ID="orclDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString2 %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString2.ProviderName %>" 
        SelectCommand="SELECT GUEST_TYPE_ID, GUEST_TYPE_NAME, DISCOUNT FROM GUEST_TYPE">
    </asp:SqlDataSource>
    <br /><br />
    <asp:Button ID="Button1" runat="server" Text="<< Back" 
        onclick="Button1_Click" BackColor="#FFCC66" Height="25px" Width="85px" 
        BorderColor="#FF9966" /><br /><br />
    
</div>
</asp:Content>

